package uoc.biblioteca.struts.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;


public class LeerExcelAction extends DispatchAction {
	
		private static final Log log = LogFactory.getLog(LeerExcelAction.class);

		public ActionForward execute(ActionMapping mapping,ActionForm form,
									HttpServletRequest request,HttpServletResponse response)
									throws IOException, ServletException
		{
		try{
			
			

		}
		catch(Exception e){
			e.printStackTrace();
			log.error("Error: ", e);
			request.getSession().setAttribute("ERROR","\n" +e.toString()  );
			return mapping.findForward("error");
		}
		return(mapping.findForward("error"));
	}
}
